<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

{:token()}
    <div class="form-group">
        <label for="c-username" class="control-label col-xs-12 col-sm-2">姓名:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-username" data-rule="required" class="form-control" name="row[truename]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">昵称:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-gender" class="control-label col-xs-12 col-sm-2">性别:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[sex]', ['1'=>'男', '0'=>'女'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">手机号:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-mobile" data-rule="required" class="form-control" name="row[mobile]" type="text" value="">
        </div>
    </div>
	
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">户型区域:</label>
        <div class="col-xs-12 col-sm-4">
			 <input id="c-num_fang" class="form-control"  name="row[num_fang]" type="text" style="width:80px;" value="">房
			  <input id="c-num_ting" class="form-control"  name="row[num_ting]" type="text" style="width:80px;" value="">厅
        </div>
    </div>
    <div class="form-group">
        <label for="c-mianji" class="control-label col-xs-12 col-sm-2">房屋面积:</label>
        <div class="col-xs-12 col-sm-4">
			 <input id="c-mianji" class="form-control"  name="row[mianji]" type="text" style="width:80px;" value=""> m<sup>2</sup>
		</div>
    </div>
	
    <div class="form-group">
        <label for="c-house_state" class="control-label col-xs-12 col-sm-2">房屋状态:</label>
        <div class="col-xs-12 col-sm-4">
		<select name="row[house_state]" class="form-control">
		{foreach name="house_state" item="vo"}
		<option value="{$vo.id}">{$vo.title}
		{/foreach}
		</select>
		</div>
    </div>
	
    <div class="form-group">
        <label for="c-house_type" class="control-label col-xs-12 col-sm-2">户型类别:</label>
        <div class="col-xs-12 col-sm-4">
		<select name="row[house_type]" class="form-control">
		{foreach name="house_type" item="vo"}
		<option value="{$vo.id}">{$vo.title}
		{/foreach}
		</select>
		</div>
    </div>




    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">绑定工号:</label>
        <div class="col-xs-12 col-sm-4">
		<select name="row[yg_id]" class="form-control">
		{foreach name="yg_list" item="vo"}
		<option value="{$vo.id}">{$vo.truename}
		{/foreach}
		</select>
		
				
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
